export default (app)=>{
    console.log(app);
    app.directive("scroll",{
        mounted(el,bin) {
            window.addEventListener('scroll', function () {
                let scrollTop = document.documentElement.scrollTop || document.body.scrollTop
                if (scrollTop + document.documentElement.clientHeight >= document.documentElement.scrollHeight) {
                  let loadData = bin.value
                  loadData()
                  console.log('指令执行');
                }
            })
        },
       
    })
}